﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;

namespace DotNetStar.TheKing.Domain.Entities.Configuration
{
    class UserConfiguration : IEntityTypeConfiguration<User>
    {
        public void Configure(EntityTypeBuilder<User> builder)
        {
            builder.HasIndex(m => m.UserName).IsUnique();
            builder.HasIndex(m => m.Email).IsUnique();
            builder.HasIndex(m => m.Mobile).IsUnique();

        }
    }
}
